package org.jaaksi.demo.animator;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/**
 * Created by Fcy on 2015/10/1.
 */
public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClickJump(View view) {
        switch (view.getId()) {
            case R.id.normal:
                jump(NormalAnimation.class);
                break;
            case R.id.num_increment:
                jump(NumberAnimator.class);
                break;
            case R.id.exchange:
                jump(ExchangePosAnimator.class);
                break;
            case R.id.fall:
                jump(FallAnimation.class);
                break;
            case R.id.kugou_fall:
                jump(KugouAnimation.class);
                break;
            case R.id.xml_anim:
                jump(XMLAnimation.class);
                break;
        }
    }

    private void jump(Class cls) {
        Intent intent = new Intent(this, cls);
        startActivity(intent);
    }
}